package lab02.test16;

/**
 * Created by JAVA on 2017/10/25.
 */
import java.util.Scanner;
public class Test16 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System .in);
        System.out.println("请分别输入数字a，b的值：");
        double a=sc.nextDouble();
        double b=sc.nextDouble();
        And sum=new And();
        Add ad=new Add();
        Divide dv=new Divide();
        Equal eq=new Equal();

        System.out.println("加法运算："+sum.four(a,b));
        System.out.println("减法运算："+dv.four(a,b));
        System.out.println("乘法运算："+ad.four(a,b));
        System.out.println("除法运算："+eq.four(a,b));
    }
}
